<?php echo js( "js/kindeditor/kindeditor.js" );?>
<?php echo js( "js/kindeditor/lang/zh_CN.js" );?>
<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
</script>
<div class="Breadcrumb">
	  <div class="Breadcrumb-i">您当前所在的位置：<span><a href="<?php echo base_url($this->_site_path.'/news');?>">内容信息</a></span>&nbsp;>&nbsp;<span class="orange"><?php echo isset($company_data['id'])?'修改':'添加';?></span> </div>               <div class="Breadcrumb-div">
       	   <ul>
           	   <li class="Breadcrumb-tj"><a href="<?php echo base_url( $this->_site_path.'/news/add' );?>" >添加</a></li>
           	   <li class="Breadcrumb-lb"><a href="<?php echo base_url( $this->_site_path.'/news' );?>" >列表</a></li>
           </ul>
        </div>
</div>
<div class="box box-headtitle box-radius">
<?php get_messagebox();// 获取提示框 ?>
	<form method="post" enctype="multipart/form-data">
		
				
		<div class="control-group">
			<label class="control-label" for="title">标题</label>
			<div class="controls">
				<input type="text" name="title" id="title" placeholder="" value="<?php echo isset($company_data['title'] ) ? $company_data['title'] : ''; ?>">
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="keywords">关键字</label>
			<div class="controls" style="width:500px">
				<input type="text" name="keywords" id="keywords" placeholder="" value="<?php echo isset($company_data['keywords'] ) ? $company_data['keywords'] : ''; ?>">
				<span>关键字用逗号隔开</span>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="article_source">排序</label>
			<div class="controls" style="width:500px">
				<input type="text" name="depth" id="depth" placeholder="" value="<?php echo isset($company_data['depth'] ) ? $company_data['depth'] : ''; ?>">
				<span>数值越小，排列越靠前</span>
			</div>
		</div>
	
		<div class="control-group">
			<label class="control-label" for="imagemark">图片路径</label>
			<div class="controls" style="width:500px">
				<input type="file" name="imagemark" id="imagemark" style='border:1px solid #555;' />
				<span>&nbsp;长：600&nbsp;x&nbsp;宽：448</span>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="description">描述</label>
			<div class="controls">
				<textarea name="description" id="description" style="width:700px;height:80px;"><?php echo isset($company_data['description'] ) ? $company_data['description'] : ''; ?></textarea>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="content">内容</label>
			<div class="controls">
				<textarea id="editor_id" name="content" style="width:700px;height:300px;"><?php echo isset($company_data['content']) ? $company_data['content'] : "";?></textarea>
			</div>
		</div>			
										
		<div class="control-group control-group-submit">
			<button type="submit" class="btn  btn-blue  floa-Left"><?php echo isset($company_data['id'])?'修改':'添加';?></button>
			<!-- <button class="btn  btn-blue" onclick="history.go(-1);">返回</button> -->
			<a href="javascript:window.history.go(-1);" class="btn btn-blue" style="margin-left:100px;">返回</a>
		</div>
		<input type="hidden" name="is_submit" value="1">
		<!--__TOKEN__-->
	</form>
</div>
